#pragma once

#include <pimstore.h>

namespace Utils
{
    void EnableMenuItem(HWND hParentWnd, int MenuItemId, bool Enable = true);
    HRESULT
    GetContactDetails(
        const CEOID ContactId,
        const CEPROPID PropId,
        CString *pName,
        CString *pNumber);
    HRESULT GetPOutlookApp(CComPtr<IPOutlookApp2> &POutlookApp);
    DWORD
    GetFileFromModulePath(
        HINSTANCE hInst,
        TCHAR *FileName,
        UINT FileNameLength,
        const TCHAR *File);
    HRESULT
    ChooseContact(
        HWND hParentWnd,
        CString *pContactName,
        CString *pContactNumber,
        CEOID *pContactId,
        CEPROPID *pPropertyId);
    int MessageBoxRes(HWND hWnd, UINT Caption, UINT Msg, UINT Type);
}
